﻿using project.B12.IRepository.Base;
using project.B12.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project.B12.IRepository
{
    public interface IMedicineRepository : IBaseRepository<Table_medicine>
    {
        public List<Table_medicine> QueryByAbbreviation(string abbrev);

        public List<Table_medicine> QueryAllMedicine();

        public void UpdateMedicine(Table_medicine medicene);

        public void AddMedicine(Table_medicine medicene);

        public int QueryIdByName(string name);

        public Table_medicine QueryById(int id);

        public Table_medicine QueryByCNName(string name);
    }
}
